package com.lb.service;


import java.util.List;

import com.lb.bean.Message;
import com.lb.bean.Reply;
import com.lb.util.PageBean;

public interface MessageService {
	
	public void save(Message message);
	
	public List<Message> findAllMessage() throws Exception;
	
	public List<Reply> findreplyBymessageId(int messageId) throws Exception;
	
	public List<Message> findmessageBymessageId(int messageId) throws Exception;
	public List<Message> findmessageByaccountName(String accountName) throws Exception;
	
	public void delete(Message message);
	
	public Message findmessageById(int messageId) throws Exception;
   
	public void delete(List<Reply> reply);
	
	 public PageBean queryForPage(int pageSize,int currentPage);
	 public PageBean queryForPageByaccountName(int pageSize,int currentPage,String accountName);
}
